package cn.tedu.carehome.foundation.mapper;

import cn.tedu.carehome.foundation.pojo.dto.CheckInfoAddNewDto;
import cn.tedu.carehome.foundation.pojo.dto.CheckInfoUpdateDTO;
import cn.tedu.carehome.foundation.pojo.entity.CheckInfo;
import cn.tedu.carehome.foundation.pojo.vo.CheckInfoAllOlderAddInfoVo;
import cn.tedu.carehome.foundation.pojo.vo.CheckInfoListItemVO;
import cn.tedu.carehome.foundation.pojo.vo.CheckInfoStandardVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CheckInfoMapper {
    /**
     * 入住信息添加
     */
    void insert(CheckInfo checkInfo);

    int deleteByid(Long id);

    int deleteBatchByids(Long[] ids);

    int update(CheckInfoUpdateDTO checkInfoUpdateDTO);

    List<CheckInfoListItemVO> list(String content);

    List<CheckInfoListItemVO> listLimit(int page,int size,String Content);

    List<CheckInfoAllOlderAddInfoVo> listAllOlderInfo(String Content);

    CheckInfoStandardVo getStandarByid(Long id);

    int count(String Content);

    int countByOlderId(Long olderId);

    int countByOlderIdNotId(Long id,Long olderId);

}
